<div>
    <div class="modal-header">
        <button class="close" data-dismiss="modal" ng-click="cancel()" title="Đóng">×</button>
        <h4 class="modal-title">Thêm diễn viên</h4>
    </div>
    <div class="modal-body">
        <div class="row">
            <div>
                {{ form('class': 'forms-horizontal' , 'id' : 'formSearchSelectAddArtistToObject') }}
                <div class="form-group col-xs-12 well">
                    <div class="col-md-11">
                        <div class="form-group">
                            <div class="col-md-3 padding-left-none">
                                {{ text_field('id' , 'class' :'forms-control col-xs-12' , 'placeholder' : 'id') }}
                                {{ hiddenField( ['artist_type','value': artistType]) }}
                            </div>
                            <div class="col-md-3">
                                {{ formSearchArtist.render('name' , ['placeholder' : 'Tên diễn viên']) }}
                            </div>
                            <div class="col-md-3">
                                {{ formSearchArtist.render('national_id') }}
                            </div>
                            <div class="col-md-3">
                                {{ formSearchArtist.render('gender') }}
                            </div>
                        </div>
                    </div>
                    <div class="col-md-1">
                        <button type="button" class="btn btn-xs btn-default btnSeachArtist">Tìm</button>
                    </div>
                </div>
                {{ end_form() }}
            </div>
        </div>
        <div class="row">
            <div class="col-xs-12">
                {{ form(config.application.backendUrl ~ '/ajax/videoArtist/addArtistToObject?object_type=' ~ objectType ~ '&object_id='  ~ objectId ~ '&artist_type=' ~ artistType , 'class': 'forms-horizontal' , 'id' : 'formSelectArtist') }}
                <div id="listSelectArtistToObject">
                    {% include 'ajax-video-artist/result_search_artist.volt'  %}
                </div>

                {{ formSearchArtist.render('csrf', ['value': security.getToken()]) }}
                {{ end_form() }}
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Đóng</button>
        <button type="button" data-loading-text="<i class='ace-icon fa fa-spinner fa-spin white bigger-125'></i>Đang tải..." class="btn btn-primary btnAddArtistToObject">Thêm</button>
    </div>
</div>
